﻿using Xunit.Abstractions;

namespace Xunit.Runner.v2
{
	/// <summary>
	/// Default implementation of <see cref="ITestSkipped"/>.
	/// </summary>
	public class TestSkipped : TestResultMessage, ITestSkipped
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="TestSkipped"/> class.
		/// </summary>
		public TestSkipped(
			ITest test,
			string reason)
				: base(test, 0, null)
		{
			Reason = reason;
		}

		/// <inheritdoc/>
		public string Reason { get; }
	}
}
